home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib16.dsk
/
DISK PREPARER.bas
< prev
next >
Wrap
BASIC Source File
|
2023-02-26
|
5KB
|
90 lines
10 REM **********************
11 REM * DISK PREPARER *
12 REM * BY BARRY KALET *
13 REM * COPYRIGHT (C) 1983 *
14 REM * BY MICROSPARC, INC *
15 REM * LINCOLN, MA. 01773 *
16 REM **********************
140 TD$ = "X": TEXT : HOME
150 FOR I = 768 TO 790: READ J: POKE I,J: NEXT I
160 DATA 162,0,32,117,253,160,2
170 DATA 138,145,105,200,169,0
180 DATA 145,105,200,169,2,145
190 DATA 105,76,57,213
200 HOME :Q$ = CHR$(34)
210 FLASH : SPEED= 50: VTAB 2: FOR K = 1 TO 20: PRINT "/";: NEXT K: FOR K = 1 TO 20: PRINT CHR$(92);: NEXT K
220 SPEED= 100: NORMAL : VTAB 7: HTAB 3: PRINT "INSERT A ";: INVERSE : PRINT "BLANK DISKETTE";: NORMAL : PRINT " INTO DRIVE 1"
230 SPEED= 100: VTAB 2: FOR K = 1 TO 20: PRINT "/";: NEXT K: FOR K = 1 TO 20: PRINT CHR$(92);: NEXT K
240 VTAB 18: FOR K = 1 TO 20: PRINT CHR$(92);: NEXT K: FOR K = 1 TO 20: PRINT "/";: NEXT K
250 NORMAL : VTAB 4: HTAB 15: SPEED= 255: NORMAL : PRINT "C A U T I O N"
260 VTAB 11: PRINT "ANY INFORMATION ON THIS DISKETTE WILL BE"
270 HTAB 11: PRINT "COMPLETELY OVERWRITTEN": PRINT : PRINT : PRINT "** COPYRIGHT 1983 BY MICROSPARC, INC. **"
280 FOR J = 1 TO 2000: NEXT J
290 VTAB 20: HTAB 19: PRINT "PRESS"
300 PRINT : HTAB 30: PRINT "<RETURN>";: HTAB 4: PRINT "<ESC>"
310 HTAB 28: PRINT "TO CONTINUE";: HTAB 3: PRINT "TO QUIT"
320 FOR J = 1 TO 1000: NEXT J
330 VTAB 22: HTAB 20: PRINT "< >"; CHR$(8); CHR$(8);: GET A$
340 IF A$ = CHR$(13) THEN GOTO 370
350 IF A$ = CHR$(27) THEN HOME : TEXT : END
360 GOTO 330
370 REM ---INITIALIZING---
380 HOME : FOR I = 1 TO 20: VTAB 8: PRINT "/";: PRINT CHR$(8);: VTAB 12: PRINT CHR$(92);: NEXT I
390 FOR I = 1 TO 20: VTAB 8: PRINT CHR$(92);: PRINT CHR$(8);: VTAB 12: PRINT "/";: NEXT I
400 VTAB 10: HTAB 10: PRINT "ARE YOU SURE? (Y/N) ";: GET A$: IF A$ = "N" THEN 540
410 IF A$ = "Y" THEN VTAB 20: HTAB 1: CALL -958: GOTO 430
420 IF A$ < >"N" THEN 400
430 VTAB 10: HTAB 1: CALL -868
440 PRINT CHR$(4):TD$ = "X"
450 VTAB 10: PRINT "ENTER YOUR NAME ";: FOR I = 1 TO 24: PRINT CHR$(95);: NEXT I: FOR I = 1 TO 24: PRINT CHR$(8);: NEXT I: INPUT "";NAME$
460 VTAB 11: PRINT "ENTER THE DATE ";: FOR I = 1 TO 24: PRINT CHR$(95);: NEXT I: FOR I = 1 TO 24: PRINT CHR$(8);: NEXT I
470 CALL 768:TD$ = MID$ (TD$,1)
480 VTAB 11: HTAB 1: CALL -868: VTAB 10: HTAB 1: CALL -868
490 J = 1:S = 1
500 ONERR GOTO 570
510 REM --CATALOGER--
520 VTAB 10: HTAB 17: PRINT "CATALOG": VTAB 11: HTAB 18: PRINT "CHECK": POKE 34,15: PRINT CHR$(4);"CATALOG"
530 TEXT : VTAB 10: HTAB 1: CALL -868: VTAB 11: HTAB 1: CALL -868: VTAB 10: HTAB 13: PRINT "CONTINUE? (Y/N) ";: GET A$: POKE 34,13: VTAB 13: HOME : TEXT : IF A$ = "Y" THEN 560
540 IF A$ = "N" THEN HOME : TEXT : END
550 GOTO 530
560 VTAB 10: HTAB 1: CALL -868: GOTO 700
570 Y = PEEK(222)
580 IF Y = 8 THEN TEXT : POKE 216,0:J = J +1: IF J <3 GOTO 700
590 ONERR GOTO 610
600 PRINT CHR$(4);"OPEN H"
610 S = S +1: IF S = 4 THEN VTAB 20: PRINT "REFER TO DOS MANUAL": END
620 Y = PEEK(222): IF Y = 4 GOTO 660
630 IF Y = 8 THEN TEXT : VTAB 10: HTAB 12: PRINT "NO DISK IN DRIVE": VTAB 11: HTAB 13: PRINT "CONTINUE? (Y/N) ";: GET A$: PRINT CHR$(4): POKE 216,0: VTAB 10: HTAB 1: CALL -868: VTAB 11: HTAB 1: CALL -868:J = 1: IF A$ = "Y" THEN 500
640 IF A$ = "N" THEN 540
650 GOTO 630
660 TEXT : VTAB 10: HTAB 10: PRINT "DISK IS WRITE PROTECTED": VTAB 11: HTAB 13: PRINT " CONTINUE? (Y/N) ";: GET A$: IF A$ = "Y" THEN 690
670 IF A$ = "N" THEN 540
680 GOTO 660
690 TEXT : VTAB 10: HTAB 1: CALL -868: VTAB 11: HTAB 1: CALL -868:J = 1: PRINT CHR$(4): POKE 216,0: GOTO 500
700 PRINT CHR$(4): VTAB 10: HTAB 15: PRINT "INITIALIZING"
710 VTAB 11: HTAB 17: PRINT "DISKETTE"
720 PRINT CHR$(4): VTAB 14: CALL -958: PRINT CHR$(4)
730 ONERR GOTO 570
740 PRINT CHR$(4);"INIT HELLO,D1"
750 C$ = " ON "
760 PRINT CHR$(4);"OPEN DOIT": PRINT CHR$(4);"WRITE DOIT"
770 PRINT "POKE 50,128": PRINT "FP": PRINT " POKE 50,128"
780 PRINT "HOME"
790 PRINT "10 TEXT:HOME:POKE 50,255:PRINT CHR$(4);"Q$"DELETE DOIT"Q$
800 PRINT "20 PRINT CHR$(4);"Q$"DELETE TEMP"Q$
810 PRINT "HOME"
820 PRINT "30 PRINT CHR$(4);"Q$"RUN HELLO"Q$
830 PRINT "HOME"
840 PRINT "SAVE TEMP"
850 PRINT "HOME"
860 PRINT "10 PRINT "Q$"THIS HELLO PROGRAM CREATED BY"Q$
870 PRINT "20 PRINT "Q$NAME$C$TD$Q$
880 PRINT "30 END"
890 PRINT "DELETE HELLO"
900 PRINT "HOME"
910 PRINT "SAVE HELLO"
920 PRINT "HOME"
930 PRINT "RUN TEMP"
940 PRINT CHR$(4);"CLOSE DOIT"
950 POKE 34,0: POKE 35,1: POKE 33,0: HOME
999 PRINT CHR$(4);"EXEC DOIT": HOME : END